package com.pattern.design.designpattern.Baozhuang;

/**
 * author:harisucici on 2018/10/12 09:38
 * email:harisucici@gmail.com
 * name:
 * todo:
 */
public abstract class Cloth extends Person {
    private Person person;

    /**
     * Instantiates a new Cloth.
     *
     * @param p the p
     */
    Cloth(Person p){
        this.person = p;
    }

    @Override
    public void dressed() {
        person.dressed();
    }
}
